package com.ddstation.crm.login.bean;

import java.io.Serializable;
import java.util.List;

import com.ddstation.crm.menu.entity.DtInvsManageInstitutionMenuEntity;
import com.ddstation.crud.entity.DtInvsManageInstitutionEntity;
import com.ddstation.crud.entity.DtInvsManageInstitutionSupervisorEntity;

/**
 * login后 保持在session中的数据
 * @author zhengXiaoBin
 * @date 2019年7月26日
 */
public class SessionLoginData implements Serializable {
	public final static long serialVersionUID = 1;
	
	public final static String KEY = "INVS_LOGIN";
	
	private DtInvsManageInstitutionSupervisorEntity doctor = null;
	private DtInvsManageInstitutionEntity institution = null;
	private int isManager = 0;//身份 0普通用户 1管理员
	private int orgId = 0;//所属部门ID

	private List<DtInvsManageInstitutionMenuEntity> jurisdictionMenus = null;

	private List<DtInvsManageInstitutionMenuEntity> workbenchMenus = null;

	public List<DtInvsManageInstitutionMenuEntity> getWorkbenchMenus() {
		return workbenchMenus;
	}

	public void setWorkbenchMenus(List<DtInvsManageInstitutionMenuEntity> workbenchMenus) {
		this.workbenchMenus = workbenchMenus;
	}

	public int getIsManager() {
		return isManager;
	}

	public int getOrgId() {
		return orgId;
	}

	public void setOrgId(int orgId) {
		this.orgId = orgId;
	}

	public void setIsManager(int isManager) {
		this.isManager = isManager;
	}

	public List<DtInvsManageInstitutionMenuEntity> getJurisdictionMenus() {
		return jurisdictionMenus;
	}

	public void setJurisdictionMenus(List<DtInvsManageInstitutionMenuEntity> jurisdictionMenus) {
		this.jurisdictionMenus = jurisdictionMenus;
	}

	public DtInvsManageInstitutionSupervisorEntity getDoctor() {
		return doctor;
	}

	public void setDoctor(DtInvsManageInstitutionSupervisorEntity doctor) {
		this.doctor = doctor;
	}

	public DtInvsManageInstitutionEntity getInstitution() {
		return institution;
	}

	public void setInstitution(DtInvsManageInstitutionEntity institution) {
		this.institution = institution;
	}

	@Override
	public String toString() {
		return "SessionLoginData [doctor=" + doctor + "]";
	}
}